package com.muniuliuma.basecontrol;

import android.app.Activity;

public class AnimationControl {
	public static final int Default = -1; // random
	public static final int Slide_Horizontal_L2R = 0;    // Slide_in_left &
														 // Slide_out_right
	public static final int Slide_Horizontal_R2L = 1;    // Slide_in_right &
														 // Slide_out_left
	public static final int Slide_Vertical_T2B = 2;       // Slide_in_top &
													      // Slide_out_bottom
	public static final int Slide_Vertical_B2T = 3;       // Slide_in_bottom &
													      // Slide_out_top
	public static final int Fade = 4;                     // Fade_in & Fade_out
	public static final int Zoom = 5;                     // Zoom_in & Zoom_out
	public static final int Animation_Count = 6;          // Zoom_in & Zoom_out

	public void etWinchangeAnimation(Activity activity, int animationID) {
		switch (animationID) {
		case Fade:
			activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
			break;
		case Slide_Horizontal_L2R:
			activity.overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.fade_out);
			break;
		case Slide_Horizontal_R2L:
			break;
		case Slide_Vertical_T2B:
			break;
		case Slide_Vertical_B2T:
			break;
		case Default:
			break;
		default:
			break;
		}

	}
}
